package cn.edu.scau.cmi.yanweijie.client;

import cn.edu.scau.cmi.yanweijie.factory.Meat;
import cn.edu.scau.cmi.yanweijie.factory.MeatFactory;

public class AbstractFactoryClient {

	public static void main(String arg[]) {
		MeatFactory meatFactory = MeatFactory.getFactory("Wens");
		meatFactory.createBeef().cook();
		meatFactory.createChicken().cook();
		meatFactory = MeatFactory.getFactory("Tianbang");
		meatFactory.createBeef();
		meatFactory = MeatFactory.getFactory("Aonong");
		meatFactory.createBeef();
	}
}
